﻿@model PageList<AqpxFile>
<table class="table table-striped table-bordered table-hover table-fix table-manage">
    <thead>
        <tr>
            <th class="w35px">
                <label><input class="checkbox-check" type="checkbox"><span></span></label>
            </th>
            <th class="text-center w80px">姓名</th>
            <th class="text-center w180px">身份证号</th>
            <th class="text-center w120px">电话</th>
            <th class="text-center w80px">审核状态</th>
            <th class="text-center w100px">支付状态</th>
            <th class="text-center w150px">支付时间</th>
            <th class="text-center w150px">行业类别</th>
            <th class="text-center w150px">人员类别</th>
            <th class="text-center w120px">考试时间</th>
            <th class="text-center w160px" data-order="@nameof(SysDoc.operate_date_time)">提交时间</th>
            <th class="text-center w180px">审核意见</th>
            <th class="text-center w180px">操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model)
        {
        <tr>
            <td>
                <label><input class="checkbox-check" type="checkbox" value="@record.id"><span></span></label>
            </td>
            <td class="text-center">
                <a class="uimodal" data-backdrop="true" data-size="lg" data-url="@Url.Action("Details", new {id = record.id})">
                    @record.name
                </a>
            </td>
            <td class="text-center">@record.id_number</td>
            <td class="text-center">@record.phone</td>
            <td class="text-center">
                @if (record.status == 2)
                {
                    <span class="label label-success">@record.statusName</span>
                }
                else if (record.status == 1)
                {
                    <span class="label label-primary">@record.statusName</span>

                }
                else
                {
                    <span class="label label-danger">@record.statusName</span>
                }
            </td>
            <td class="text-center">
                @if (record.pay_status == 1 && string.IsNullOrEmpty(record.pay_msg))
                {
                    <span>线下支付</span>
                }
                else
                {
                    @record.pay_msg
                }
            </td>
            <td class="text-center">@DateTimeHelper.FormatDateHasMinute(record.pay_date_time)</td>
            <td class="text-center">@record.industry_category</td>
            <td class="text-center">@record.user_category</td>
            <td class="text-center">@DateTimeHelper.FormatDate(record.exam_date)</td>
            <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.operate_date_time)</td>
            <td class="text-center">@record.remark</td>
            <td class="text-left">
                @if (record.status == 1)
                {
                    <a class="color-primary uimodal" data-size="lg" data-toggle="tooltip"
                       data-url="@Url.Action("Audit", new { id = record.id })"
                       title="审核">
                        <i class="fa fa-lg fa-key"></i>
                        审核
                    </a>
                    <br />
                }
                @if (record.pay_status == 0 && record.status == 2)
                {
                    <a href="#" class="updatePayStatus" data-id="@record.id">
                        <i class="fa fa-lg fa-cc-paypal"></i>
                        线下支付
                    </a>
                    <br />
                }

                <a class="color-primary uimodal" data-size="lg" data-toggle="tooltip"
                   data-url="@Url.Action("editExamDate", new { id = record.id })"
                   title="编辑资料">
                    <i class="fa fa-lg fa-edit"></i>
                    编辑资料
                </a>
            </td>
        </tr>
        }
    </tbody>
</table>
@Html.RenderPages(Model)